package com.ws.module.test01;

import com.ws.entity.test01.Caculator1;

import java.util.Scanner;

public class Caculator1Moudle {
    public  Caculator1 inputAndCreateCalculator() {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个操作数:");
        int input1 = scanner.nextInt();
        System.out.println("请输入运算符(+, -, *, /):");
        String input2 = scanner.next();
        System.out.println("请输入第二个操作数:");
        int input3 = scanner.nextInt();
        return new Caculator1(input1, input2, input3);
    }
}